package CN.COM.DE;

import java.util.Scanner;

public class Y8 {

	public static void main(String[] args) {
		System.out.println("请输入一个数:");
		int n=scanner.nextInt();
		int x=0;
		
		for (int i = 2; i <n;i++) {
			if (n%i==0) {
			x++;
				
			}
		}
		if (x>=1) {
			System.out.println("该数为素数");
			
		}
		else {
			System.out.println("该数不是素数");
		}
	}

}
